<template>
  <div class="h-full">
    <RegisterStyle1 v-if="registerType === '1'" />
    <!-- <FullRegister v-else /> -->
    <RegisterStyle2 v-else-if="registerType === '2'" />
    <!-- 样式三  医保 -->
    <RegisterStyle3 v-else-if="registerType === '3'" />
    <!-- 样式四  茗视光 -->
    <RegisterStyle4 v-else-if="registerType === '4'" />
    <!-- 样式五  青岛福柏 -->
    <RegisterStyle5 v-else-if="registerType === '5'" />
    <!-- 样式六  军用 -->
    <RegisterStyle6Army v-else-if="registerType === '6'" />
    <!-- <MedicalInsurance /> -->
  </div>
</template>

<script setup>
import { onMounted } from 'vue'
import { useRouter, useRoute } from 'vue-router'
import { getSystemConfig } from '@/utils/systemConfig'
import RegisterStyle1 from './RegisterStyle1'
import RegisterStyle2 from './RegisterStyle2'
import RegisterStyle3 from './RegisterStyle3'
import RegisterStyle4 from './RegisterStyle4'
import RegisterStyle5 from './RegisterStyle5'
import RegisterStyle6Army from './RegisterStyle6Army'

const route = useRoute()
const router = useRouter()
const registerType = getSystemConfig('GHDJYS') //挂号登记样式

onMounted(() => {
  router.push({
    path: '/out-registration/register',
    query: { ...route.query, view: registerType }
  })
})
</script>
<style lang="less" scoped></style>
